/* pages/tabbar/home/index.wxss */
.home-page {
  min-height: 100vh;
  background-color: #F9FAFC;
  padding-bottom: 106rpx;

  .nav-bar {
    .city-btn {
      background: #f0f0f0;
    }

    .city {
      display: flex;
      align-items: center;

      text {
        font-size: 30rpx;
        font-family: Source Han Sans CN;
        font-weight: bold;
        color: #474646;
      }
    }
  }

  .t-swiper-host {
    border-radius: 0;
  }

  .card {
    margin: 48rpx auto 0 auto;
    width: 690rpx;
    background: #FFFFFF;
    box-shadow: 0rpx 0rpx 21rpx 0rpx rgba(237, 238, 240, 0.73);
    border-radius: 20rpx;
    position: relative;
    overflow: hidden;
    padding-bottom: 30rpx;

    .bg {
      background-color: #ECEDF0;
      position: absolute;
      top: 0;
      width: 100%;
      height: 100rpx;
    }

    .tabs {
      position: relative;
      z-index: 2;
      display: flex;
      align-items: center;

      .tab {
        width: 200rpx;
        height: 100rpx;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28rpx;
        font-family: Source Han Sans CN;
        font-weight: 500;
        color: #323232;
        transition: all 0.2s;

        &-active {
          color: #FE5A11;
          font-size: 32rpx;
        }
      }
    }

    .citys {
      display: flex;
      align-items: center;
      padding-bottom: 48rpx;
      margin: 34rpx 56rpx 0 56rpx;
      border-bottom: 1rpx solid #F1F2F5;

      .set-out {
        display: flex;
        flex-direction: column;
        flex: 1;

        .label {
          font-size: 28rpx;
          font-family: Source Han Sans CN;
          font-weight: bold;
          color: #9A9898;
        }

        .city {
          margin-top: 24rpx;
          font-size: 49rpx;
          font-family: Source Han Sans CN;
          font-weight: bold;
          color: #323232;
        }

        .place {
          margin-top: 24rpx;
          font-size: 49rpx;
          font-family: Source Han Sans CN;
          font-weight: bold;
          color: #9A9898;
        }
      }

      .join {
        width: 42rpx;
        height: 16rpx;
        margin: 0 20rpx;
      }

      .destination {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        flex: 1;

        .label {
          font-size: 28rpx;
          font-family: Source Han Sans CN;
          font-weight: bold;
          color: #9A9898;
        }

        .city {
          margin-top: 24rpx;
          font-size: 49rpx;
          font-family: Source Han Sans CN;
          font-weight: bold;
          color: #323232;
        }

        .place {
          margin-top: 24rpx;
          font-size: 49rpx;
          font-family: Source Han Sans CN;
          font-weight: bold;
          color: #9A9898;
        }
      }
    }

    .btns {
      display: flex;
      align-items: center;
      margin-top: 28rpx;
      padding: 0 22rpx;
      justify-content: space-between;

      .cu-btn {
        width: 312rpx;
        height: 104rpx;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        background-color: rgba(255, 255, 255, 0);
        border: 1rpx solid #FF6D1D;
        border-radius: 60rpx;

        &:first-child {
          background-color: rgba(255, 255, 255, 0);
          border: none;

          &::after {
            border: none;
          }
        }

        .music-icon {
          width: 34rpx;
          height: 46rpx;
        }

        .search-icon {
          width: 38rpx;
          height: 37rpx;
        }

        .search-text {
          margin-left: 21rpx;
          font-size: 36rpx;
          font-family: Source Han Sans CN;
          font-weight: bold;
          color: #FF6D1D;
        }

        .btn-bg {
          position: absolute;
          width: 100%;
          height: 100%;
        }

        .info {
          position: relative;
          z-index: 2;
          display: flex;
          align-items: center;

          text {
            margin-left: 21rpx;
            font-size: 36rpx;
            font-family: Source Han Sans CN;
            font-weight: bold;
            color: #FFFFFF;
          }
        }
      }
    }

    .count-info {
      margin-top: 51rpx;
      font-size: 24rpx;
      font-family: Source Han Sans CN;
      font-weight: 400;
      color: #323232;
      text-align: center;

      .num {
        color: #FF6D1D;
      }
    }

    .zdy-search {
      margin: 20rpx 24rpx 0 24rpx;

      .input {
        padding-bottom: 24rpx;
        border-bottom: 1rpx solid #f2f2f2;

        input {
          width: 100%;
          text-align: center;
        }
      }
    }

    .search-btn {
      margin-top: 24rpx;
      padding: 0 24rpx;

      .cu-btn {
        width: 100%;
        height: 80rpx;
        background-color: #FF6D1D;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
      }
    }

    .ad {
      margin-top: 37rpx;
      display: flex;
      justify-content: center;

      image {
        width: 642rpx;
        height: 167rpx;
      }
    }
  }

  // 优质专线推荐
  .recommend {
    margin: 48rpx auto 0 auto;
    width: 690rpx;
    background: #FFFFFF;
    box-shadow: 0rpx 0rpx 21rpx 0rpx rgba(237, 238, 240, 0.73);
    border-radius: 20rpx;
    position: relative;
    overflow: hidden;

    .top {
      position: relative;
      height: 80rpx;
      display: flex;
      align-items: center;

      .bg {
        position: absolute;
        width: 100%;
        height: 100%;
      }

      .info {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
        padding: 0 28rpx;

        image {
          width: 34rpx;
          height: 34rpx;
        }

        .title {
          margin-left: 14rpx;
          font-size: 36rpx;
          font-family: Source Han Sans CN;
          font-weight: 500;
          color: #FFFFFF;
        }
      }
    }

    .list {
      margin-top: 44rpx;
      display: flex;
      flex-wrap: wrap;
      gap: 23rpx;
      padding-left: 32rpx;
      padding-bottom: 30rpx;

      .item {
        width: 309rpx;
        background: #F9F9F9;
        border-radius: 15rpx;
        display: flex;
        align-items: center;
        padding: 27rpx 16rpx;
        box-sizing: border-box;

        .logo {
          width: 71rpx;
          height: 71rpx;
        }

        .info {
          flex: 1;
          margin-left: 16rpx;

          .name {
            width: 170rpx;
            font-size: 28rpx;
            font-family: Source Han Sans CN;
            font-weight: bold;
            color: #323232;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
          }

          .tips {
            width: 180rpx;
            margin-top: 22rpx;
            font-size: 22rpx;
            font-family: Source Han Sans CN;
            font-weight: 400;
            color: #9D9A9A;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
          }
        }
      }
    }
  }

  // 广告
  .bottom {
    display: flex;
    align-items: center;
    margin-top: 59rpx;

    .item {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;

      image {
        width: 81rpx;
        height: 81rpx;
      }

      .name {
        margin-top: 22rpx;
        font-size: 28rpx;
        font-family: Source Han Sans CN;
        font-weight: 400;
        color: #9D9A9A;
      }

      .desc {
        margin-top: 10rpx;
        font-size: 22rpx;
        font-family: Source Han Sans CN;
        font-weight: 400;
        color: #9D9A9A;
      }
    }
  }
}